//
//  OosMediaActivityObject.m
//  Oos4ios
//
//  Created by Pablo Gonzalez on 4/4/11.
//  Copyright 2011 11870.com. All rights reserved.
//

#import <oos4ios/Model/OosMediaActivityObject.h>

@implementation OosMediaActivityObject

@end

@implementation OosPictureActivityObject

static NSString *imagePredicate = @"image.identifier = %@";

+ (OosPictureActivityObject *) objectFromIdentifier:(NSString *)identifier
{
	NSArray *fetched = [super objectsWithPredicate:imagePredicate, identifier];
	return (OosPictureActivityObject *) [self createFromSet: fetched];
}

@dynamic image;

@end

@implementation OosVideoActivityObject

static NSString *videoPredicate = @"video.identifier = %@";

+ (OosVideoActivityObject *) objectFromIdentifier:(NSString *)identifier
{
	NSArray *fetched = [super objectsWithPredicate:videoPredicate, identifier];
	return (OosVideoActivityObject *) [self createFromSet: fetched];
}

@dynamic video;

@end




